
# 汉诺塔游戏
def move(n, A, B, C,):
    if n == 1:
        print(f"{A}->{C}")
    else:
        move(n-1, A, C, B)
        print(f"{A}->{C}")
        move(n-1, B, A, C)

move(3,"A","B","C")
